home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 January / PCWorld_2002-01_cd.bin / Novinky / Becher / 1. Zlaty Kalich / ZlatyKalich.exe / scripts / DefineButton2_1328 / BUTTONCONDACTION on(release).as next >
Text File  |  2001-11-12  |  1KB  |  54 lines

  1. on(release){
  2.    if(_root.poz == "b")
  3.    {
  4.       _root.pepa.gotoAndPlay("bc");
  5.    }
  6.    else if(_root.poz == "d")
  7.    {
  8.       _root.pepa.gotoAndPlay("dc");
  9.    }
  10.    else if(_root.poz == "e")
  11.    {
  12.       _root.pepa.gotoAndPlay("ec");
  13.    }
  14.    else if(_root.poz == "c")
  15.    {
  16.       if(_root.draglej == 0)
  17.       {
  18.          if(_root.izvuk == 1)
  19.          {
  20.             _root.loadzvuk.gotoAndPlay("hlidactalk_talk");
  21.          }
  22.          else
  23.          {
  24.             _root.hlidactalk.gotoAndPlay("talk");
  25.          }
  26.       }
  27.       else if(_root.draglej == 11)
  28.       {
  29.          _root.stopdragall();
  30.          call("/:hide");
  31.          if(_root.izvuk == 1)
  32.          {
  33.             _root.loadzvuk.gotoAndPlay("hlidactalk_datplayboy");
  34.          }
  35.          else
  36.          {
  37.             _root.hlidactalk.gotoAndPlay("datplayboy");
  38.          }
  39.       }
  40.       else
  41.       {
  42.          _root.stopdragall();
  43.          if(_root.izvuk == 1)
  44.          {
  45.             _root.loadzvuk.gotoAndPlay("hlidactalk_tonechci");
  46.          }
  47.          else
  48.          {
  49.             _root.hlidactalk.gotoAndPlay("tonechci");
  50.          }
  51.       }
  52.    }
  53. }
  54.